<template>
  <div id="app">
    <Nav/>
    <transition
      enter-active-class="animate__animated animate__fadeIn animate__faster"
      leave-active-class="animate__animated animate__fadeOut animate__faster"
      mode="out-in"
    >
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
import Nav from '../components/Nav.vue'
import {mapActions} from 'vuex'
export default {
  components: {
    Nav
  },
  created () {
    this.initAddress()
  },
  methods: {
    ...mapActions({
      initAddress:'address/addressInitAct'
    })
  },
}
</script>

<style lang="less">
@import url('../assets/css/reset.css');
</style>
